// components/icon/index.js
Component({
  /**
   * 组件的属性列表
   */
  options: {
    addGlobalClass: true,
    multipleSlots:true
  },
  externalClasses: ['custom-class'],
  properties: {
    text:String,
    size:String,
    color:String,
    name:String
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onClick: function(){
      this.triggerEvent('click');
    }
  }
})
